########### next target ###############

set(smf_LIB_SRCS
    smf.h
    smf_private.h
    smf.c
    smf_decode.c
    smf_load.c
    smf_save.c
    smf_tempo.c
    iniparser.c
    iniparser.h
    dictionary.c
    dictionary.h
    array.h
    array.c			
		
	
   )

add_library(smf SHARED ${smf_LIB_SRCS})

target_link_libraries(smf)

set_target_properties(smf PROPERTIES VERSION 1.0.0 SOVERSION 1)
install(TARGETS smf LIBRARY DESTINATION /opt/smf/lib)
install(FILES smf.h array.h iniparser.h DESTINATION /opt/smf/include)



add_definitions(-std=c99 -g)




########### next target ###############

set(smfsh_SRCS smfsh.c)

add_executable(smfsh ${smfsh_SRCS})

target_link_libraries(smfsh ${KDE4_KDECORE_LIBS} smf m)

#install(TARGETS smfsh ${INSTALL_TARGETS_DEFAULT_ARGS})

########### next target ###############

set(vsqdump_SRCS vsqdump.c)

add_executable(vsqdump ${vsqdump_SRCS})

target_link_libraries(vsqdump smf m)

########### next target ###############

set(ustdump_SRCS ustdump.c)

add_executable(ustdump ${ustdump_SRCS})

target_link_libraries(ustdump smf m)

set(mididump_SRCS mididump.c)

add_executable(mididump ${mididump_SRCS})

target_link_libraries(mididump smf m)



set(kardump_SRCS kardump.c)

add_executable(kardump ${kardump_SRCS})

target_link_libraries(kardump smf m)


set(lauloidimport_SRCS lauloidimport.c)

add_executable(lauloidimport ${lauloidimport_SRCS})

target_link_libraries(lauloidimport smf m)


########### install files ###############

#install(FILES  smf.h DESTINATION include)




